<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	
  </head>
  
  <body>
    <div>
    	<div>
    		<c:if test="${ empty userInfo} }">
    			<jsp:forward page="login.jsp"></jsp:forward>
    		</c:if>
    	</div>
    
    	<c:if test="${empty bookList}">
    		<div style="color: red; font-size: 32px; " >
    			没有数据。。。。
    		</div>
    	</c:if>
    </div>
  </body>
</html>
